package com.ss.android.lockscreen.http.data;

import com.ss.android.lockscreen.d.a.aa;
import org.json.JSONException;
import org.json.JSONObject;

public class ScreenCell extends aa{
    public enum Type {
        Feed,
        RedBag,
        LittleVideo
    }


    public static ScreenCell a;
    public Type b;
    public String c;
    public long d;
    public String e;
    public long f;
    public long g;
    public String h;
    public boolean i;
    public String j;
    public String k;

    static {
        ScreenCell.a = null;
    }

    public ScreenCell() {

        this.b = Type.Feed;
    }

    public final JSONObject a() throws JSONException {
        JSONObject v0 = new JSONObject();
        v0.put("type", this.b.name());
        v0.put("mTitle", this.c);
        v0.put("mBehotTime", this.d);
        v0.put("mOpenUrl", this.e);
        v0.put("mGroupId", this.f);
        v0.put("mItemId", this.g);
        v0.put("mImageUrl", this.h);
        v0.put("mHasVideo", this.i);
        v0.put("mArticleUrl", this.j);
        v0.put("mSchemaUrl", this.k);
        return v0;
    }

    public final void a(JSONObject arg3) throws JSONException, NullPointerException {
        this.b = Type.valueOf(arg3.optString("type", Type.Feed.name()));
        this.c = arg3.optString("mTitle");
        this.d = arg3.optLong("mBehotTime");
        this.e = arg3.optString("mOpenUrl");
        this.f = arg3.optLong("mGroupId");
        this.g = arg3.optLong("mItemId");
        this.h = arg3.optString("mImageUrl");
        this.i = arg3.optBoolean("mHasVideo");
        this.j = arg3.optString("mArticleUrl");
        this.k = arg3.optString("mSchemaUrl");
    }
}

